<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\api\controller;

/**
 * 文章接口控制器
 */
class Article extends ApiBase
{
    
    /**
     * 赌王列表接口
     */
    public function kinglist()
    {
        
        return $this->apiReturn($this->logicArticle->kinglist($this->param));
    }

    /**
     * 资讯详情接口
     */
    public function newsdetail()
    {

        return $this->apiReturn($this->logicArticle->getArticleInfo($this->param));
    }
    
    /**
     * 文章列表接口
     */
    public function newsList()
    {
        
        return $this->apiReturn($this->logicArticle->getArticleList($this->param));
    }

    /**
     *活动列表接口
     */
    public function  activelist(){
        return $this->apiReturn($this->logicArticle->activelist($this->param));
    }

    /**
     *文章点赞接口
     */
    public function  article_fabulous(){
        return $this->apiReturn($this->logicArticle->article_fabulous($this->param));
    }


    /**
     * 活动详情接口
     */
    public function activedetail()
    {

        return $this->apiReturn($this->logicArticle->getActiveInfo($this->param));
    }

    /**
     * 活动报名接口
     */
    public function activejion()
    {

        return $this->apiReturn($this->logicArticle->getActiveInfoJion($this->param));
    }

    /**
     * 活动门票购买接口
     */
    public function buy_ticket()
    {

        return $this->apiReturn($this->logicArticle->buy_ticket($this->param));
    }

    /**
     * 资讯首页
     */
    public function news_index(){
        return $this->apiReturn($this->logicArticle->news_index($this->param));
    }

    /**
     * 换一批
     */
    public function next_list(){
        return $this->apiReturn($this->logicArticle->next_list($this->param));
    }

    /**
     * 全部
     */
    public function full_list(){
        return $this->apiReturn($this->logicArticle->full_list($this->param));
    }

    /**
     * 全部
     */
    public function hot_list(){
        return $this->apiReturn($this->logicArticle->hot_list($this->param));
    }
}
